package edu.xcdq;

public class Demo03 {
    public static void main(String[] args) {
        for (int i = 0 ;i <4; i++){           //控制行
            for (int j = 0 ; j < i;j++){  //控制单行提示的内容  **********
                //System.out.print("i=" + i +"j=" + j );
                System.out.print("*");
            }
            System.out.println();
        }
        System.out.println("右上角");
        for (int i = 1 ;i <=4; i++){           //控制行
            for (int k = 0 ; k < i-1; k++){
                System.out.print("");
            }
            for (int j = 0 ; j < 5-i;j++){  //控制单行提示的内容  **********
                //System.out.print("i=" + i +"j=" + j );
                System.out.print("*");
            }
            System.out.println();
        }
        System.out.println("右下角");
        for (int i = 1 ;i <=4; i++){           //控制行
            for (int k = 0 ; k < 4-i; k++){
                System.out.print("");
            }
            for (int j = 1 ; j <=i;j++){  //控制单行提示的内容  **********
                //System.out.print("i=" + i +"j=" + j );
                System.out.print("#");
            }
            System.out.println();
        }
    }
}
